<?php
session_start();

include("/class.login.php");

$login = new Login();

$logout = isset($_POST["logout"]);

if($logout){
	session_destroy();
	echo "Je bent uitgelogd.";
	die();
}
else if($login->isLoggedIn()){
	echo "Members area <br><br>
	<form action='index.php' method='post'><input type='submit' name='logout' value='Log out' /></form>
	<hr />";	
	
}
else{
	echo "Front page";
}

?>